<{include file='public/head'}>
<div class="layui-body">
	<div class="layui-tab layui-tab-brief" lay-filter="tab">
	  <ul class="layui-tab-title">
	    <li class="layui-this">扩展字段修改</li>
	  </ul>
	  <div class="layui-tab-content">
	  	<div class="layui-tab-item layui-show">
	  		<form action="<{:url('/ExtFiel/mod/id/'.$UrlParam.id.'')}>" method="post" class="layui-form">
	  			<input type="hidden" name="formcheck" value="<{$formcheck}>" >
				<div class="layui-form-item">
					 <label class="layui-form-label">表单类型</label>
					 <div class="layui-input-block">
						 <select name="mcode" required lay-verify="required">
							<option value="">请选择分类</option>
							<{volist name="$models" id="value"}>
								 <option value="<{$value->mcode}>" <{if condition="$value->mcode eq $extfield.mcode"}> selected <{/if}>><{$value->name}></option>
							   <{/volist}>
						</select>
					 </div>
				</div>
                <div class="layui-form-item">
                     <label class="layui-form-label">字段描述</label>
                     <div class="layui-input-block">
                     	<input type="text" name="description"  value="<{$extfield->description}>" placeholder="请输入字段描述，如：姓名 性别" class="layui-input">
                     </div>
                </div>

                <div class="layui-form-item">
                     <label class="layui-form-label">字段名称</label>
                     <div class="layui-input-block">
                     	<input type="text" name="name" readonly value="<{$extfield->name}>" maxlength="20" placeholder="请输入字段名称，字母、数组、下划线，如：name sex" class="layui-input readonly">
                     </div>
                </div>

                <div class="layui-form-item">
                     <label class="layui-form-label">字段类型</label>
                     <div class="layui-input-block">
                     	 <select name="type" lay-verify="required">
	                    	<option value="1" <{if condition="$extfield->type eq 1"}>selected<{/if}>>单行文本</option>
							<option value="2" <{if condition="$extfield->type eq 2"}>selected<{/if}>>多行文本</option>
							<option value="9" <{if condition="$extfield->type eq 9"}>selected<{/if}>>下拉选择</option>
	                    	<option value="3" <{if condition="$extfield->type eq 3"}>selected<{/if}>>单选按钮</option>
	                    	<option value="5" <{if condition="$extfield->type eq 5"}>selected<{/if}>>图片上传</option>
	                    	<!--<option value="8" <{if condition="$extfield->type eq 8"}>selected<{/if}>>编辑器</option>--->
	                    </select>
                     </div>
                </div>
				<div class="layui-form-item">
                     <label class="layui-form-label">备注说明</label>
                     <div class="layui-input-block">
                     	<textarea name="description" placeholder="备注说明"  class="layui-textarea"><{$extfield->description}></textarea>
                     	<div class="layui-form-mid layui-word-aux">备注说明，用于前台表单备注说明</div>
                     </div>
                </div>
                <div class="layui-form-item">
                     <label class="layui-form-label">选择按钮值</label>
                     <div class="layui-input-block">
                     	<textarea name="value" placeholder="多个选项用逗号或回车隔开"  class="layui-textarea"><{$extfield->value}></textarea>
                     	<div class="layui-form-mid layui-word-aux">多个值用英文逗号或回车隔开。</div>
                     </div>
                </div>

                <div class="layui-form-item">
                     <label class="layui-form-label">排序</label>
                     <div class="layui-input-block">
                     	<input type="text" name="sorting" required lay-verify="required" value="<{$extfield->sorting}>" placeholder="请输入排序"  class="layui-input">
                     </div>
                </div>
				<div class="layui-form-item">
					 <label class="layui-form-label">必填？</label>
					 <div class="layui-input-block">
						<input type="radio" name="isture" value="0" <{if condition="$extfield.isture eq '0'"}> checked <{/if}> class="layui-input">非必填
					 </div>
					 <div class="layui-input-block">
						<input type="radio" name="isture" value="1" <{if condition="$extfield.isture eq '1'"}> checked <{/if}> class="layui-input">必填
					 </div>
	            </div>
   				<div class="layui-form-item">
					 <div class="layui-input-block">
					    <button class="layui-btn" lay-submit>立即提交</button>
					    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
					 </div>
				</div>
	  		</form>
	  	</div>
	  </div>
	 </div>
</div>
<{include file='public/foot'}>